package com.example.evensystem.model.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.evensystem.model.entity.Account
import com.example.evensystem.model.entity.AccountDao
import com.example.evensystem.model.entity.DailyWork
import com.example.evensystem.model.entity.DailyWorkDao

import com.example.evensystem.model.entity.MonthPlan
import com.example.evensystem.model.entity.MonthPlanDao
import com.example.evensystem.model.entity.MonthlyWork
import com.example.evensystem.model.entity.MonthlyWorkDao
import com.example.evensystem.model.entity.Worker
import com.example.evensystem.model.entity.WorkerDao

@Database(
    entities = [Account::class, DailyWork::class,
        MonthlyWork::class, MonthPlan::class, Worker::class],
    version = 3, exportSchema = false
)
abstract class SystemDb : RoomDatabase() {

    abstract fun getAccountDao(): AccountDao

    abstract fun getDailyWorkDao(): DailyWorkDao

    //abstract fun getHolidayPlanDao(): HolidayPlanDao

    abstract fun getMonthlyWorkDao(): MonthlyWorkDao

    abstract fun getMonthPlanDao(): MonthPlanDao

    abstract fun getWorkerDao(): WorkerDao

}